Gio.Volume::get_drive

function vfunc_get_drive(): Gio.Drive {
}
  

Gets the drive for the volume.

Returns

a Gio.Drive or null if volume is not associated with a drive. The returned object should be unreffed with GObject.Object.prototype.unref when no longer needed.