pub struct LocalInfilePacket<'a> { /* private fields */ }Expand description
Represents MySql’s local infile packet.
Implementations§
Source§impl<'a> LocalInfilePacket<'a>
impl<'a> LocalInfilePacket<'a>
pub fn new(file_name: impl Into<Cow<'a, [u8]>>) -> Self
Sourcepub fn file_name_ref(&self) -> &[u8] ⓘ
pub fn file_name_ref(&self) -> &[u8] ⓘ
Value of the file_name field of a local infile packet as a byte slice.
Sourcepub fn file_name_str(&self) -> Cow<'_, str>
pub fn file_name_str(&self) -> Cow<'_, str>
Value of the file_name field of a local infile packet as a string (lossy converted).
pub fn into_owned(self) -> LocalInfilePacket<'static>
Trait Implementations§
Source§impl<'a> Clone for LocalInfilePacket<'a>
impl<'a> Clone for LocalInfilePacket<'a>
Source§fn clone(&self) -> LocalInfilePacket<'a>
fn clone(&self) -> LocalInfilePacket<'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 LocalInfilePacket<'a>
impl<'a> Debug for LocalInfilePacket<'a>
Source§impl<'de> MyDeserialize<'de> for LocalInfilePacket<'de>
impl<'de> MyDeserialize<'de> for LocalInfilePacket<'de>
Source§impl MySerialize for LocalInfilePacket<'_>
impl MySerialize for LocalInfilePacket<'_>
Source§impl<'a> PartialEq for LocalInfilePacket<'a>
impl<'a> PartialEq for LocalInfilePacket<'a>
impl<'a> Eq for LocalInfilePacket<'a>
impl<'a> StructuralPartialEq for LocalInfilePacket<'a>
Auto Trait Implementations§
impl<'a> Freeze for LocalInfilePacket<'a>
impl<'a> RefUnwindSafe for LocalInfilePacket<'a>
impl<'a> Send for LocalInfilePacket<'a>
impl<'a> Sync for LocalInfilePacket<'a>
impl<'a> Unpin for LocalInfilePacket<'a>
impl<'a> UnwindSafe for LocalInfilePacket<'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