Struct genet_abi::layer::Payload [−][src]
#[repr(C)]pub struct Payload { /* fields omitted */ }
A payload object.
Methods
impl Payload
[src]
impl Payload
pub fn new<B: Into<ByteSlice>, T: Into<Token>>(data: B, id: T) -> Payload
[src]
pub fn new<B: Into<ByteSlice>, T: Into<Token>>(data: B, id: T) -> Payload
Creates a new payload.
pub fn with_typ<B: Into<ByteSlice>, T: Into<Token>, U: Into<Token>>(
data: B,
id: T,
typ: U
) -> Payload
[src]
pub fn with_typ<B: Into<ByteSlice>, T: Into<Token>, U: Into<Token>>(
data: B,
id: T,
typ: U
) -> Payload
Creates a new payload with the given type.
pub fn id(&self) -> Token
[src]
pub fn id(&self) -> Token
Returns the ID of self.
pub fn typ(&self) -> Token
[src]
pub fn typ(&self) -> Token
Returns the type of self.
pub fn data(&self) -> ByteSlice
[src]
pub fn data(&self) -> ByteSlice
Returns the data of self.