Struct ServerReloadContext
pub struct ServerReloadContext { /* private fields */ }Expand description
Selected server data files for one converter, with pack overrides resolved. Keys have their directory and extension removed. This cannot read assets or filesystem paths. Its fields are private so the view can grow.
Implementations§
§impl ServerReloadContext
impl ServerReloadContext
pub fn list(&self) -> impl Iterator<Item = &Identifier>
pub fn list(&self) -> impl Iterator<Item = &Identifier>
Converted IDs, across all namespaces, in deterministic resource-ID order.
pub fn read(&self, id: &Identifier) -> Option<&[u8]>
pub fn read(&self, id: &Identifier) -> Option<&[u8]>
The winning bytes for a converted ID, or None outside this directory.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ServerReloadContext
impl RefUnwindSafe for ServerReloadContext
impl Send for ServerReloadContext
impl Sync for ServerReloadContext
impl Unpin for ServerReloadContext
impl UnsafeUnpin for ServerReloadContext
impl UnwindSafe for ServerReloadContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more