pub struct FlightMetadata { /* private fields */ }Available on crate feature
flight only.Expand description
The information that a FlightDriver must produce in order to register flights as DataFusion tables.
Implementations§
Source§impl FlightMetadata
impl FlightMetadata
Sourcepub fn new(info: FlightInfo, props: FlightProperties, schema: SchemaRef) -> Self
pub fn new(info: FlightInfo, props: FlightProperties, schema: SchemaRef) -> Self
Customize everything that is in the driver’s control
Sourcepub fn try_new(info: FlightInfo, props: FlightProperties) -> Result<Self>
pub fn try_new(info: FlightInfo, props: FlightProperties) -> Result<Self>
Customize flight properties and try to use the FlightInfo schema
Trait Implementations§
Source§impl Clone for FlightMetadata
impl Clone for FlightMetadata
Source§fn clone(&self) -> FlightMetadata
fn clone(&self) -> FlightMetadata
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 FlightMetadata
impl Debug for FlightMetadata
Source§impl TryFrom<FlightInfo> for FlightMetadata
impl TryFrom<FlightInfo> for FlightMetadata
Source§type Error = FlightError
type Error = FlightError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl !Freeze for FlightMetadata
impl RefUnwindSafe for FlightMetadata
impl Send for FlightMetadata
impl Sync for FlightMetadata
impl Unpin for FlightMetadata
impl UnwindSafe for FlightMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request