Struct cataclysm::Shared [−][src]
pub struct Shared<T> { /* fields omitted */ }
Expand description
Wrapper around data to be shared in the server
The main use for this structure is to work as an extractor in the server callbacks to access shared data. An example can be found in the ServerBuilder’s share.
Implementations
Extracts the contained data from the Shared
in an Arc
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for Shared<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Shared<T> where
T: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more