pub struct CloneSessionResponse {
pub success: Option<bool>,
pub error: Option<String>,
pub uuid_msb: Option<i64>,
pub uuid_lsb: Option<i64>,
pub was_write_into_file: Option<bool>,
}
Fields§
§success: Option<bool>
If true, the clone was successful. If false it failed and |error| contains the details about the failure.
error: Option<String>
§uuid_msb: Option<i64>
The UUID of the cloned session.
uuid_lsb: Option<i64>
§was_write_into_file: Option<bool>
TracingService sets this when the cloned session was write_into_file=true. The consumer cannot know upfront if a session is WIF or not. Introduced in v53.
Implementations§
Source§impl CloneSessionResponse
impl CloneSessionResponse
Sourcepub fn success(&self) -> bool
pub fn success(&self) -> bool
Returns the value of success
, or the default value if success
is unset.
Sourcepub fn error(&self) -> &str
pub fn error(&self) -> &str
Returns the value of error
, or the default value if error
is unset.
Sourcepub fn uuid_msb(&self) -> i64
pub fn uuid_msb(&self) -> i64
Returns the value of uuid_msb
, or the default value if uuid_msb
is unset.
Sourcepub fn uuid_lsb(&self) -> i64
pub fn uuid_lsb(&self) -> i64
Returns the value of uuid_lsb
, or the default value if uuid_lsb
is unset.
Sourcepub fn was_write_into_file(&self) -> bool
pub fn was_write_into_file(&self) -> bool
Returns the value of was_write_into_file
, or the default value if was_write_into_file
is unset.
Trait Implementations§
Source§impl Clone for CloneSessionResponse
impl Clone for CloneSessionResponse
Source§fn clone(&self) -> CloneSessionResponse
fn clone(&self) -> CloneSessionResponse
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 CloneSessionResponse
impl Debug for CloneSessionResponse
Source§impl Default for CloneSessionResponse
impl Default for CloneSessionResponse
Source§impl Message for CloneSessionResponse
impl Message for CloneSessionResponse
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.Source§impl PartialEq for CloneSessionResponse
impl PartialEq for CloneSessionResponse
impl StructuralPartialEq for CloneSessionResponse
Auto Trait Implementations§
impl Freeze for CloneSessionResponse
impl RefUnwindSafe for CloneSessionResponse
impl Send for CloneSessionResponse
impl Sync for CloneSessionResponse
impl Unpin for CloneSessionResponse
impl UnwindSafe for CloneSessionResponse
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