Enum matrix_sdk_crypto::olm::ShareInfo
source · pub enum ShareInfo {
Shared(SharedWith),
Withheld(WithheldCode),
}
Expand description
Struct holding info about the share state of a outbound group session.
Variants§
Implementations§
Helper to create a SharedWith info
sourcepub fn new_withheld(code: WithheldCode) -> Self
pub fn new_withheld(code: WithheldCode) -> Self
Helper to create a Withheld info
Trait Implementations§
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
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