pub enum ServerResponse {
StartRecording(RecordingActionResult),
StopRecording(RecordingActionResult),
}Variants§
StartRecording(RecordingActionResult)
StopRecording(RecordingActionResult)
Implementations§
Source§impl ServerResponse
impl ServerResponse
const ENTRIES: &'static [EnvelopeEntry<Self>]
Sourcepub fn into_envelope(self, response_to: RequestId) -> Result<Envelope, Error>
pub fn into_envelope(self, response_to: RequestId) -> Result<Envelope, Error>
encode one server response 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 ServerResponse
impl Clone for ServerResponse
Source§fn clone(&self) -> ServerResponse
fn clone(&self) -> ServerResponse
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 ServerResponse
impl Debug for ServerResponse
Source§impl PartialEq for ServerResponse
impl PartialEq for ServerResponse
impl Eq for ServerResponse
impl StructuralPartialEq for ServerResponse
Auto Trait Implementations§
impl Freeze for ServerResponse
impl RefUnwindSafe for ServerResponse
impl Send for ServerResponse
impl Sync for ServerResponse
impl Unpin for ServerResponse
impl UnsafeUnpin for ServerResponse
impl UnwindSafe for ServerResponse
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