pub struct ComBinlogDumpGtid<'a> { /* private fields */ }Expand description
Command to request a binlog-stream from the master starting a given position.
Implementations§
Source§impl<'a> ComBinlogDumpGtid<'a>
impl<'a> ComBinlogDumpGtid<'a>
Sourcepub fn new(server_id: u32) -> Self
pub fn new(server_id: u32) -> Self
Creates new instance with default values for pos, data and flags fields.
Sourcepub fn flags(&self) -> BinlogDumpFlags
pub fn flags(&self) -> BinlogDumpFlags
Returns the flags field value.
Sourcepub fn filename_raw(&self) -> &[u8] ⓘ
pub fn filename_raw(&self) -> &[u8] ⓘ
Returns the filename field value.
Sourcepub fn filename(&self) -> Cow<'_, str>
pub fn filename(&self) -> Cow<'_, str>
Returns the filename field value as a UTF-8 string (lossy converted).
Sourcepub fn with_filename(self, filename: impl Into<Cow<'a, [u8]>>) -> Self
pub fn with_filename(self, filename: impl Into<Cow<'a, [u8]>>) -> Self
Defines filename for this instance.
Sourcepub fn with_server_id(self, server_id: u32) -> Self
pub fn with_server_id(self, server_id: u32) -> Self
Sets the server_id field value.
Sourcepub fn with_flags(self, flags: BinlogDumpFlags) -> Self
pub fn with_flags(self, flags: BinlogDumpFlags) -> Self
Sets the flags field value.
Trait Implementations§
Source§impl<'a> Clone for ComBinlogDumpGtid<'a>
impl<'a> Clone for ComBinlogDumpGtid<'a>
Source§fn clone(&self) -> ComBinlogDumpGtid<'a>
fn clone(&self) -> ComBinlogDumpGtid<'a>
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<'a> Debug for ComBinlogDumpGtid<'a>
impl<'a> Debug for ComBinlogDumpGtid<'a>
Source§impl<'a> Hash for ComBinlogDumpGtid<'a>
impl<'a> Hash for ComBinlogDumpGtid<'a>
Source§impl<'de> MyDeserialize<'de> for ComBinlogDumpGtid<'de>
impl<'de> MyDeserialize<'de> for ComBinlogDumpGtid<'de>
Source§impl MySerialize for ComBinlogDumpGtid<'_>
impl MySerialize for ComBinlogDumpGtid<'_>
Source§impl<'a> PartialEq for ComBinlogDumpGtid<'a>
impl<'a> PartialEq for ComBinlogDumpGtid<'a>
impl<'a> Eq for ComBinlogDumpGtid<'a>
impl<'a> StructuralPartialEq for ComBinlogDumpGtid<'a>
Auto Trait Implementations§
impl<'a> Freeze for ComBinlogDumpGtid<'a>
impl<'a> RefUnwindSafe for ComBinlogDumpGtid<'a>
impl<'a> Send for ComBinlogDumpGtid<'a>
impl<'a> Sync for ComBinlogDumpGtid<'a>
impl<'a> Unpin for ComBinlogDumpGtid<'a>
impl<'a> UnwindSafe for ComBinlogDumpGtid<'a>
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