pub enum Payload {
Wbci(Box<Payload>),
Spri(Box<Payload>),
}Available on crate feature
report only.Expand description
A payload of either interface, its interface detected from the input.
Variants§
Implementations§
Source§impl Payload
impl Payload
Sourcepub fn parse(bytes: &[u8]) -> Result<Self, Unreadable>
pub fn parse(bytes: &[u8]) -> Result<Self, Unreadable>
Reads a WBCI or S/PRI payload, bare or in a SOAP 1.1 envelope: the WBCI reader first, then the S/PRI reader, each with its default limits.
§Errors
Neither reader accepts the input; the error is the one of the interface whose envelope namespace the input names (WBCI’s when it names neither).
Trait Implementations§
impl StructuralPartialEq for Payload
Auto Trait Implementations§
impl Forget for Payload
impl Freeze for Payload
impl Move for Payload
impl RefUnwindSafe for Payload
impl Send for Payload
impl Sync for Payload
impl Unpin for Payload
impl UnsafeUnpin for Payload
impl UnwindSafe for Payload
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