[−][src]Struct koibumi_core::content::Broadcast
A content of a broadcast message.
Implementations
impl Broadcast
[src]
pub fn new(
header: impl AsRef<[u8]>,
identity: &PrivateIdentity,
encoding: Encoding,
message: Vec<u8>
) -> Result<Self, BroadcastError>
[src]
header: impl AsRef<[u8]>,
identity: &PrivateIdentity,
encoding: Encoding,
message: Vec<u8>
) -> Result<Self, BroadcastError>
Construct a broadcast content and sign it.
pub fn stream_number(&self) -> Stream
[src]
Returns the stream number.
pub fn encoding(&self) -> Encoding
[src]
Returns the encoding.
pub fn message(&self) -> &[u8]
[src]
Returns the message.
pub fn verify(&self, signed_header: impl AsRef<[u8]>) -> Result<(), VerifyError>
[src]
Verify the signature.
pub fn address(&self) -> Result<Address, AddressError>
[src]
Returns the Bitmessage address.
Trait Implementations
impl Clone for Broadcast
[src]
impl Debug for Broadcast
[src]
impl Eq for Broadcast
[src]
impl Hash for Broadcast
[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<Broadcast> for Broadcast
[src]
impl ReadFrom for Broadcast
[src]
impl StructuralEq for Broadcast
[src]
impl StructuralPartialEq for Broadcast
[src]
impl WriteTo for Broadcast
[src]
Auto Trait Implementations
impl RefUnwindSafe for Broadcast
[src]
impl Send for Broadcast
[src]
impl Sync for Broadcast
[src]
impl Unpin for Broadcast
[src]
impl UnwindSafe for Broadcast
[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> ReadFromExact for T where
T: ReadFrom,
[src]
T: ReadFrom,
impl<T> Same<T> for T
type Output = T
Should always be Self
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>,