pub struct Options {
pub timeout: Option<Duration>,
pub offset: u32,
pub limit: Option<u32>,
}
Expand description
Most Conn methods allows to pass an options
argument
Some options are applicable only to some methods (will be ignored otherwise).
Which can be:
Fields§
§timeout: Option<Duration>
For example, a method whose options
argument is {timeout: Some(Duration::from_secs_f32(1.5)})
will stop
after 1.5 seconds on the local node, although this does not guarantee that execution will stop on the remote
server node.
offset: u32
The offset
option specifies the number of rows to skip before starting to return rows from the query.
Can be used with select() method.
Default: 0
limit: Option<u32>
The limit
option specifies the number of rows to return after the offset
option has been processed.
Can be used with select() method.
Treats as unlimited if None
specified.
Default: None
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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