pub enum ServerRequest {
Offer(SessionDescriptionPayload),
Renegotiate(SessionDescriptionPayload),
}Variants§
Offer(SessionDescriptionPayload)
Renegotiate(SessionDescriptionPayload)
Implementations§
Source§impl ServerRequest
impl ServerRequest
const ENTRIES: &'static [EnvelopeEntry<Self>]
Sourcepub fn into_envelope(self, request_id: RequestId) -> Result<Envelope, Error>
pub fn into_envelope(self, request_id: RequestId) -> Result<Envelope, Error>
encode one server-authored request into the Odoo wire envelope
§Errors
returns an error when the typed payload cannot be serialized into the JSON envelope payload
pub(crate) fn decode( tag: &str, payload: Option<Value>, ) -> Result<Self, EnvelopeDecodeError>
Trait Implementations§
Source§impl Clone for ServerRequest
impl Clone for ServerRequest
Source§fn clone(&self) -> ServerRequest
fn clone(&self) -> ServerRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ServerRequest
impl Debug for ServerRequest
Source§impl PartialEq for ServerRequest
impl PartialEq for ServerRequest
impl Eq for ServerRequest
impl StructuralPartialEq for ServerRequest
Auto Trait Implementations§
impl Freeze for ServerRequest
impl RefUnwindSafe for ServerRequest
impl Send for ServerRequest
impl Sync for ServerRequest
impl Unpin for ServerRequest
impl UnsafeUnpin for ServerRequest
impl UnwindSafe for ServerRequest
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