[−][src]Struct koibumi_core::object::Msg
msg object.
Implementations
impl Msg
[src]
pub fn new(encrypted: Vec<u8>) -> Self
[src]
Creates a msg object from an encrypted content.
pub fn encrypted(&self) -> &[u8]
[src]
Returns the reference to the encrypted content of this msg object.
pub fn decrypt(
&self,
header: &Header,
identity: &PrivateIdentity
) -> Result<Msg, DecryptError>
[src]
&self,
header: &Header,
identity: &PrivateIdentity
) -> Result<Msg, DecryptError>
Decrypts this msg object and returns the decrypted content.
Trait Implementations
impl Clone for Msg
[src]
impl Debug for Msg
[src]
impl Eq for Msg
[src]
impl Hash for Msg
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Msg> for Msg
[src]
impl SizedReadFrom for Msg
[src]
impl StructuralEq for Msg
[src]
impl StructuralPartialEq for Msg
[src]
impl TryFrom<Object> for Msg
[src]
type Error = TryIntoMsgError
The type returned in the event of a conversion error.
pub fn try_from(object: Object) -> Result<Self, Self::Error>
[src]
impl WriteTo for Msg
[src]
Auto Trait Implementations
impl RefUnwindSafe for Msg
[src]
impl Send for Msg
[src]
impl Sync for Msg
[src]
impl Unpin for Msg
[src]
impl UnwindSafe for Msg
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> SizedReadFromExact for T where
T: SizedReadFrom,
[src]
T: SizedReadFrom,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,